//
//  YSMeViewController.m
//  HubayMe1
//
//  Created by apple on 16/12/16.
//  Copyright © 2016年 Global Barter. All rights reserved.
//

#import "YSMeViewController.h"
#import "YSSettingViewController.h"


@interface YSMeViewController ()

//头像
@property (weak, nonatomic) IBOutlet UIImageView *userImageView;
//名字
@property (weak, nonatomic) IBOutlet UILabel *userNameL;
//卡种
@property (weak, nonatomic) IBOutlet UILabel *cardClassL;
//公司
@property (weak, nonatomic) IBOutlet UILabel *companyL;



//总易货币
@property (weak, nonatomic) IBOutlet UILabel *totalIconL;
//消费易币
@property (weak, nonatomic) IBOutlet UILabel *consumeIconL;
//剩余易币
@property (weak, nonatomic) IBOutlet UILabel *SurplusIconL;




//订单处理
@property (weak, nonatomic) IBOutlet UIView *OrderManagementView;
//交易记录
@property (weak, nonatomic) IBOutlet UIView *TransactionRecordView;
//我的收藏
@property (weak, nonatomic) IBOutlet UIView *myCollectionView;
//信贷额度
@property (weak, nonatomic) IBOutlet UIView *CreditLineView;
//联系人
@property (weak, nonatomic) IBOutlet UIView *ContactsView;
//账户设置
@property (weak, nonatomic) IBOutlet UIView *mySettingView;
//退出账号
@property (weak, nonatomic) IBOutlet UIView *SignOutView;



@end

@implementation YSMeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.userImageView.layer.cornerRadius = 40;
    self.userImageView.clipsToBounds = YES;
    
    [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc]init] forBarMetrics:UIBarMetricsDefault];
    
    [self.navigationController.navigationBar setShadowImage:[[UIImage alloc]init]];
    
    [self setUpGestureRecognizer];
}

-(void)setUpGestureRecognizer{
    [self.OrderManagementView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
    [self.TransactionRecordView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
    [self.myCollectionView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
    [self.CreditLineView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
    [self.ContactsView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
    [self.mySettingView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
    [self.SignOutView addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(orderManagement)]];
}

-(void)orderManagement{
    YSSettingViewController *settingVC = [[YSSettingViewController alloc]init];
    [self.navigationController pushViewController:settingVC animated:YES];
}

@end
